package java_class_work.week06.reflect;

/**
 * @Auther: admin
 * @Date: 2022/10/18 14:39
 * @Description: 实体类
 */

public class Student {
    private String name;
    private int age;
    private int sex;
    public int height;

    public Student() {
    }
    //私有
    private Student(String name) {
        this.name = name;
    }

    public Student(String name, int age, int sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                '}';
    }

    private void method01(int arg1,String arg2){
        System.out.println("私有方法1:"+arg1+arg2);
    }
    private int method02(){
        System.out.println("私有方法2带返回值");
        return 0;
    }
    public static int method03(int arg1){
        System.out.println("静态方法3");
        return arg1;
    }
}
